<template>
  <div>
    <h1>Parent --- {{count}}</h1>
    <Child :count='count' :changeCount='changeCount'/>
  </div>
</template>

<script>
import Child from "./Child";
export default {
  name: "Parent",
  components: {
    Child,
  },
  data(){
    return {
        count:0
    }
  },
  methods:{
    changeCount(value){
        this.count += value
    }
  }
};
</script>

<style>
</style>